part of 'bloc.dart';

class PurchaseBlocState {
  const PurchaseBlocState({
    required this.purchaseRestorationStatus,
    required this.purchaseObtainmentStatus,
  });

  final PurchaseRestorationStatus purchaseRestorationStatus;
  final PurchaseObtainmentStatus purchaseObtainmentStatus;

  PurchaseBlocState copyWith({
    PurchaseRestorationStatus Function()? purchaseRestorationStatus,
    PurchaseObtainmentStatus Function()? purchaseObtainmentStatus,
  }) {
    return PurchaseBlocState(
      purchaseRestorationStatus: purchaseRestorationStatus == null
          ? this.purchaseRestorationStatus
          : purchaseRestorationStatus(),
      purchaseObtainmentStatus: purchaseObtainmentStatus == null
          ? this.purchaseObtainmentStatus
          : purchaseObtainmentStatus(),
    );
  }
}
